package cn.johnyu.mapper;

import cn.johnyu.pojo.Book;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
public interface BookMapper extends BaseMapper<Book> {
//    定制的方法
    @Select("select name from books where id= #{id}")
    Book loadBook(Integer id);
}
